package cn.bdqn.pn.pojo.base;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

@Entity
@Table(name = "comment")
public class Comment  implements Serializable {
	@Id
	@Column(name = "commentId")
	private Integer commentid;

	@Column(name = "userId")
	private Long userid;

	@Column(name = "fatherId")
	private Long fatherid;

	@Column(name = "belongToId")
	private Integer belongtoid;		//属于哪条主评论

	@Column(name = "commodityId")
	private Long commodityid;

	@Column(name = "content")
	private String content;

	@Column(name = "level")
	private Long level;

	@Column(name = "imgId")
	private Integer imgid;

	@Column(name = "likeCount")
	private Long likecount;

	@Column(name = "commentTime")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private java.util.Date commenttime;

	@Column(name = "status")
	private Integer status;

	@Column(name = "childCount")
	private Integer childCount;		//回复次数

	private String more1;

	private String more2;

	private String more3;




	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Long getFatherid() {
		return fatherid;
	}

	public void setFatherid(Long fatherid) {
		this.fatherid = fatherid;
	}

	public Long getCommodityid() {
		return commodityid;
	}

	public void setCommodityid(Long commodityid) {
		this.commodityid = commodityid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getLevel() {
		return level;
	}

	public void setLevel(Long level) {
		this.level = level;
	}


	public Long getLikecount() {
		return likecount;
	}

	public void setLikecount(Long likecount) {
		this.likecount = likecount;
	}

	public Date getCommenttime() {
		return commenttime;
	}

	public void setCommenttime(Date commenttime) {
		this.commenttime = commenttime;
	}

	public String getMore1() {
		return more1;
	}

	public void setMore1(String more1) {
		this.more1 = more1;
	}

	public String getMore2() {
		return more2;
	}

	public void setMore2(String more2) {
		this.more2 = more2;
	}

	public String getMore3() {
		return more3;
	}

	public void setMore3(String more3) {
		this.more3 = more3;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getChildCount() {
		return childCount;
	}

	public void setChildCount(Integer childCount) {
		this.childCount = childCount;
	}

	public Integer getCommentid() {
		return commentid;
	}

	public void setCommentid(Integer commentid) {
		this.commentid = commentid;
	}

	public Integer getImgid() {
		return imgid;
	}

	public void setImgid(Integer imgid) {
		this.imgid = imgid;
	}

	public Integer getBelongtoid() {
		return belongtoid;
	}

	public void setBelongtoid(Integer belongtoid) {
		this.belongtoid = belongtoid;
	}


}
